import requests


def get_header():
    # 输入正确的密码、手机号、登录成功、返回
    resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                         json={"mobile": "13800000002", "password": "123456"})
    token = resp.json().get("data")

    return {"Authorization": token}


if __name__ == '__main__':
    header = get_header()
    print(header)
    # 123
